<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .bigbox{
            width: 200px;
            height: 200px;
            background-color: purple;
            display: flex;
            /* flex-direction: column; */
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            
        }
        .smallbox{
            width: 50px;
            height: 50px;
            background-color: pink;
            border-radius: 50%;
        }
        .er{
            width: 200px;
            height: 200px;
            background-color: purple;
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            align-items: center;
            margin-top: 30px;
        }
        .san{
            width: 200px;
            height: 200px;
            background-color: purple;
            display: flex;
            /* flex-direction: column; */
            justify-content: space-around;
            align-items: center;
            margin-top: 30px; 
        }
        .smallbox3{
            align-self: flex-start;
        }
        .smallbox4{
            align-self: flex-end;
        }
        .si{
            width: 200px;
            height: 200px;
            background-color: purple;
            display: flex;
            justify-content: space-around;
            align-content: space-around;
            flex-wrap: wrap;
            margin-top: 30px; 
        }
    </style>
</head>
<body>
    <div class="bigbox">
        <div>
            <div class="smallbox"></div>
        </div>
    </div>
    <div class="er">
        <div class="smallbox"></div>
        <div class="smallbox"></div>
    </div>
    <div class="san">
        <div class="smallbox smallbox3"></div>
        <div class="smallbox"></div>
        <div class="smallbox smallbox4"></div>
    </div>
    <div class="si">
        <div class="smallbox " style="margin: 0 20px;"></div>
        <div class="smallbox " style="margin: 0 20px;"></div>
        <div class="smallbox " style="margin: 0 20px;"></div>
        <div class="smallbox " style="margin: 0 20px;"></div>
    </div>
</body>
</html>